home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / ftn / perror.z / perror
Encoding:
Text File  |  2002-10-03  |  6.4 KB  |  220 lines

  1. PERROR(3F)                                            Last changed: 10-2-98
  2.  
  3.  
  4. NNAAMMEE
  5.      ppeerrrroorr, ggeerrrroorr, iieerrrrnnoo, ssttrreerrrroorr - get system error messages
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ssuubbrroouuttiinnee ppeerrrroorr ((_s_t_r_i_n_g))
  9.      cchhaarraacctteerr**((**)) _s_t_r_i_n_g
  10.      ssuubbrroouuttiinnee ggeerrrroorr ((_s_t_r_i_n_g))
  11.      cchhaarraacctteerr**((**)) _s_t_r_i_n_g
  12.      cchhaarraacctteerr**((**)) ffuunnccttiioonn _g_e_r_r_o_r(())
  13.      ffuunnccttiioonn _i_e_r_r_n_o(())
  14.      ssuubbrroouuttiinnee ssttrreerrrroorr ((_i_e_r_r_o_r__n_u_m,, _s_t_r_i_n_g))
  15.      iinntteeggeerr _i_e_r_r_o_r__n_u_m
  16.      cchhaarraacctteerr**((**)) _s_t_r_i_n_g
  17.  
  18. IIMMPPLLEEMMEENNTTAATTIIOONN
  19.      IRIX systems
  20.  
  21. DDEESSCCRRIIPPTTIIOONN
  22.      ppeerrrroorr writes a message to Fortran logical unit 0 appropriate to the
  23.      last detected system error.  _s_t_r_i_n_g is written preceding the standard
  24.      error message.
  25.  
  26.      ggeerrrroorr returns the system error message in character variable _s_t_r_i_n_g.
  27.      ggeerrrroorr may be called either as a subroutine or as a function.
  28.  
  29.      iieerrrrnnoo returns the error number of the last detected system error.
  30.      This number is updated only when an error actually occurs.  Most
  31.      routines and I/O statements that might generate such errors return an
  32.      error code after the call; that value is a more reliable indicator of
  33.      what caused the error condition.
  34.  
  35.      ssttrreerrrroorr is the same as ggeerrrroorr except you pass in an explicit error
  36.      number.
  37.  
  38. BBUUGGSS
  39.      _S_t_r_i_n_g in the call to _p_e_r_r_o_r can be no longer than 127 characters.
  40.  
  41.      The length of the string returned by _g_e_r_r_o_r and _s_t_r_e_r_r_o_r is determined
  42.      by the calling program.
  43.  
  44.      Error numbers > 100 are mapped to Fortran errors.  Thus you may not be
  45.      able to retrieve the UNIX errors > 100 using these functions.
  46.  
  47. NNOOTTEESS
  48.      UNIX system error codes are described in iinnttrroo(2).  The F77 I/O error
  49.      codes and their meanings are the following:
  50.      100
  51.           error in format
  52.      101
  53.           out of space for i/o unit table
  54.      102
  55.           formatted i/o not allowed
  56.      103
  57.           unformatted i/o not allowed
  58.      104
  59.           direct i/o not allowed
  60.      105
  61.           sequential i/o not allowed
  62.      106
  63.           can't backspace file
  64.      107
  65.           null file name
  66.      108
  67.           can't stat file
  68.      109
  69.           file already connected
  70.      110
  71.           off end of record
  72.      111
  73.           truncation failed in end file
  74.      112
  75.           incomprehensible list input
  76.      113
  77.           out of free space
  78.      114
  79.           unit not connected
  80.      115
  81.           read unexpected character
  82.      116
  83.           blank logical input field
  84.      117
  85.           bad variable type
  86.      118
  87.           bad namelist name
  88.      119
  89.           variable not in namelist
  90.      120
  91.           no end record
  92.      121
  93.           namelist subscript out of range
  94.      122
  95.           negative repeat count
  96.      123
  97.           illegal operation for unit
  98.      124
  99.           off beginning of record
  100.      125
  101.           no * after repeat count
  102.      126
  103.      127
  104.           can't find 'old' file
  105.      128
  106.           unknown system error
  107.      129
  108.           requires seek ability
  109.      130
  110.           illegal argument
  111.      131
  112.           duplicate key value on write
  113.      132
  114.           indexed file not open
  115.      133
  116.           bad isam argument
  117.      134
  118.           bad key description
  119.      135
  120.           too many open indexed files
  121.      136
  122.           corrupted isam file
  123.      137
  124.           isam file not opened for exclusive access
  125.      138
  126.           record locked
  127.      139
  128.           key already exists
  129.      140
  130.           cannot delete primary key
  131.      141
  132.           beginning or end of file reached
  133.      142
  134.           cannot find requested record
  135.      143
  136.           current record not defined
  137.      144
  138.           isam file is exclusively locked
  139.      145
  140.           filename too long
  141.      146
  142.           cannot create lock file
  143.      147
  144.           record too long
  145.      148
  146.           key structure does not match file structure
  147.      149
  148.           direct access on an indexed file not allowed
  149.      150
  150.           keyed access on a sequential file not allowed
  151.      151
  152.           keyed access on a relative file not allowed
  153.      152
  154.           append access on an indexed file not allowed
  155.      153
  156.           must specify record length
  157.      154
  158.           key field value type does not match key type
  159.      155
  160.           character key field value length too long
  161.      156
  162.           fixed record on sequential file not allowed
  163.      157
  164.           variable records allowed only on unformatted sequential file
  165.      158
  166.           stream records allowed only on formatted sequential file
  167.      159
  168.           maximum number of records in direct access file exceeded
  169.      160
  170.           attempt to create or write to a readonly file
  171.      161
  172.           must specify key descriptions
  173.      162
  174.           carriage control not allowed for unformatted units
  175.      163
  176.           indexed files only
  177.      164
  178.           cannot use on indexed file
  179.      165
  180.           cannot use on indexed or append file
  181.      166
  182.           error in closing file
  183.      167
  184.           invalid code in format specification
  185.      168
  186.           invalid record number in direct access file
  187.      169
  188.           cannot have endfile record on non-sequential file
  189.      170
  190.           cannot position within current file
  191.      171
  192.           cannot have sequential records on direct access file
  193.      172
  194.           cannot find namelist in input file
  195.      173
  196.           cannot read from stdout
  197.      174
  198.           cannot write to stdin
  199.      175
  200.           stat call failed in f77inode
  201.      181
  202.           Direct unformatted I/O not allowed.
  203.      182
  204.           cannot open a directory
  205.      183
  206.           subscript out of bounds
  207.      184
  208.           function not declared as varargs
  209.      185
  210.           internal error -- may be due to illegal vararg usage.
  211.  
  212. FFIILLEESS
  213.      //uussrr//uuccbb//lliibb//lliibbUU7777..aa
  214.      //uussrr//lliibb//lliibbII7777..aa
  215.  
  216. SSEEEE AALLSSOO
  217.      iinnttrroo(2), ppeerrrroorr(3F)
  218.  
  219.      This man page is available only online.
  220.